import request from '@/utils/request';

const treatise = {
  list(params) {
    return request.get('/cgzh/treatise/list', {params});
  },
  add(data) {
    return request.post('/cgzh/treatise/add', data);
  },
  update(data) {
    return request.post('/cgzh/treatise/update', data);
  },
  get(id) {
    return request.get(`/cgzh/treatise/detail/${id}`);
  },
  delete(id) {
    return request.post(`/cgzh/treatise/delete/${id}`);
  },
  myList(params) {
    return request.get('/cgzh/treatise/myList', {params});
  },
  getAll(id) {
    return request.get(`/cgzh/treatise/allDetail/${id}`);
  },
  memberAddList(data) {
    return request.post(`/cgzh/treatiseMember/addList`, data);
  },
  memberListGet(id) {
    return request.get(`/cgzh/treatiseMember/getByTreatiseId/${id}`);
  },
  projectAddList(data) {
    return request.post(`/cgzh/treatiseProject/addList`, data);
  },
  projectListGet(id) {
    return request.get(`/cgzh/treatiseProject/getByTreatiseId/${id}`);
  },
  submit(data) {
    return request.post(`/cgzh/treatise/submit`, data);
  },
  getJoinList(params) {
    return request.get('/cgzh/treatise/getJoinList', {params});
  },

}

export default treatise;
